
/* $Id: route-xxx.c 3 2007-07-10 06:59:05Z kf701.ye $ */

#include "factory.h"

int main(int argc,char **argv)
{
	debug_verbose = 4;

	if( argc < 3 )
	{
		sys_err("Usage: route-xxx add|del gw_ip\n");
		display_route();
		return 1;
	}

	if( 0 == strcmp(argv[1], "add") )
		setup_route( argv[2] );
	else if( 0 == strcmp(argv[1], "del") )
		delete_route( argv[2] );
	else
	{
		sys_err("Usage: route-xxx add|del gw_ip\n");
		display_route();
	}

	return 0;
}
